#pragma once

#define _CODE_RSA_

#if defined(__ENCODE__)
void EnCode(int regType, const char * bidno, int vy, int vm, int vd, int engLevel, BOOL isSuper, char * outHexStr);
void EnCode(int regType, LPCWSTR bidno, int vy, int vm, int vd, int engLevel, BOOL isSuper, LPWSTR outHexStr, int outHexStrLen);
#endif
bool DeCode(const char * inHexStr, char * bidno, int &vy, int &vm, int &vd, int &engLevel, bool &isSuper, int &regType);
bool DeCode(LPCWSTR inHexStr, LPWSTR bidno, int bidnoLen, int &vy, int &vm, int &vd, int &engLevel, bool &isSuper, int &regType);

bool CheckBidNO(LPCWSTR bidno);
